﻿
    function generateRandomString(length){
        const characters = "abcdef0123456789";
        let result = "";
        for(let i=0;i<length;i++){
            const randomIndex = Math.floor(Math.random()*characters.length);
            result+=characters.charAt(randomIndex);
        }
        return result;
    }

function setClientSecret($client,$secret){    
        $client.val(generateRandomString(10));
        $secret.val(generateRandomString(20));
}